package io.gitee.zhangbinhub.admin.log.mapper;

import io.gitee.zhangbinhub.admin.log.entity.RouteLog;
import io.gitee.zhangbinhub.admin.log.entity.RouteLogHistory;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface RouteLogMapper {
    RouteLogMapper INSTANCE = Mappers.getMapper(RouteLogMapper.class);

    RouteLogHistory toHistory(RouteLog log);
}
